<!--<script language='Javascript' src='includes/datepick1/datetimepicker.js'></script>-->
<link rel="stylesheet" href="stylesheets/calendar.css?random=20051112" media="screen"></LINK>
<SCRIPT type="text/javascript" src="javascripts/calendar1.js?random=20060118"></script>
<script language="Javascript">
function checkpenalty()
{
	var _FRM = document._FRM;
	if (_FRM.iRenewalDate1.value == "" || _FRM.iRenewalDate1.value == 0) {
		alert("Enter valid date.");
		_FRM.iRenewalDate1.focus();
		return false;
	}
	if (_FRM.iSurcharge.value == "" || _FRM.iSurcharge.value == 0 || parseFloat(_FRM.iSurcharge.value) < 0) {
		alert("Enter valid surcharge.");
		_FRM.iSurcharge.select();
		return false;
	}
	if (_FRM.iInterest.value == "" || _FRM.iInterest.value == 0 || parseFloat(_FRM.iInterest.value) < 0) {
		alert("Enter valid interest.");
		_FRM.iInterest.select();
		return false;
	}
	if (_FRM.iLActivate.value == 'ON' && (_FRM.iLate.value == "" || _FRM.iLate.value == 0 || parseFloat(_FRM.iLate.value) < 0)) {
		alert("Enter valid Late Filing Fee.");
		_FRM.iLate.select();
		return false;
	}
	_FRM.sb.value = "<? echo md5(Submit);?>";
	_FRM.submit();
	return true;
}
</script>
<form ENCTYPE="multipart/form-data" method="post" name="_FRM" action="index.php?part=4&class_type=Preference&BusItem=ebpls_ninterestsur&selMode=ebpls_nmotorpenalty">
<input type="hidden" name="bbo" value="<? echo $bbo;?>">
<input type="hidden" name="sb">
<input type="hidden" name="renewtype">
<input type="hidden" name="changeondin">
<table width=100% align=center cellspacing=0 cellpadding=0>
<tr><td colspan=2 class=header align=center width=100%>REFERENCES</td></tr>
<tr>
        <td colspan=2 align=center>
</td>
</tr>
<tr width=100%>
	<td align=center colspan=3 class=header2> Motorized Interest/Surcharge </td>
</tr>
<tr><td colspan=2 ><br></td></tr>
<tr><td colspan=2 ><br></td></tr>
<tr>
<td colspan=2 align=center>
<table>
<tr>
<td>Date of Renewal</td>
<td>
	<input type=radio name='iRenewalType' value='1' <? echo $renewalcheck1;?> onclick="javascript: _FRM.renewtype.value = 1; _FRM.submit();">1 Time&nbsp;
	<input type=radio name='iRenewalType' value='2' <? echo $renewalcheck2;?> onclick="javascript: _FRM.renewtype.value = 2;  _FRM.submit();">By Plate Number
</td>
</tr>
<tr>
<td>
<?php
if ($iRenewalType == "2" || $renewtype == "2") {
?>
Ending in 1
<?php
}
?>
	&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate1; ?>" readonly name="iRenewalDate1">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate1,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<?php
if ($iRenewalType == "2" || $renewtype == "2") {
?>
<tr>
<td>Ending in 2&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate2; ?>" readonly name="iRenewalDate2">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate2,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<tr>
<td>Ending in 3&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate3; ?>" readonly name="iRenewalDate3">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate3,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<tr>
<td>Ending in 4&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate4; ?>" readonly name="iRenewalDate4">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate4,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<tr>
<td>Ending in 5&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate5; ?>" readonly name="iRenewalDate5">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate5,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<tr>
<td>Ending in 6&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate6; ?>" readonly name="iRenewalDate6">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate6,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<tr>
<td>Ending in 7&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate7; ?>" readonly name="iRenewalDate7">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate7,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<tr>
<td>Ending in 8&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate8; ?>" readonly name="iRenewalDate8">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate8,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<tr>
<td>Ending in 9&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate9; ?>" readonly name="iRenewalDate9">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate9,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<tr>
<td>Ending in 0&nbsp;</td>
<td>
<input type="text" value="<?php echo $iRenewalDate0; ?>" readonly name="iRenewalDate0">
                        <img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date" onclick ="displayCalendar(_FRM.iRenewalDate0,'mm-dd',this);_FRM.changeondin.value=1;">
</td>
</tr>
<?php
}
?>
<tr>
<td>Surcharge</td>
<td><input type=text name=iSurcharge size=5 maxlength=5 value="<?php echo $iSurcharge;?>"> &nbsp &nbsp
<input type='radio' name='iIndicator' value='1' <? echo $is_check1;?>>Constant &nbsp <input type='radio' name='iIndicator' value='2' <? echo $is_check2;?>>Formula
</td>
</tr>
<tr>
<td>Interest</td>
<td><input type=text name=iInterest size=5 maxlength=5 value="<?php echo $iInterest;?>"> &nbsp 
&nbsp;<font class="def_label"> (Decimal)</font><input type=checkbox name='iActivate' value='ON' <? echo $scheck;?>>Activate
</td>
<tr>
<td>&nbsp;</td>
<td><input type=radio name='IntType' value='1' <? echo $intypecheck1;?>>Simple&nbsp;
	<input type=radio name='IntType' value='2' <? echo $intypecheck2;?>>Cumulative
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type=radio name='FeeOnly' value='1' <? echo $feecheck1;?>>Fees Only&nbsp;
	<input type=radio name='FeeOnly' value='2' <? echo $feecheck2;?>>Fees and Surcharge
</td>
</tr>
<tr>
<td>Late Filing Fee</td>
<td><input type=text name=iLate size=5 maxlength=15 value="<?php echo $iLate;?>"> &nbsp;<input type=checkbox name='iLActivate' value='ON' <? echo $lcheck;?>>Activate
</td>
</tr>
<tr>
<td>Compute Back Tax</td>
<td><input type=checkbox name='iBackTax' value='ON' <? echo $backcheck;?>>Activate
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=2><br></td>
</tr>
<tr>
<td colspan=2>&nbsp;</td>
</tr>
<tr>
<td colspan=2><input type=button name=SubmitButton value=Apply onclick="javascript: checkpenalty();"></td>
</tr>
</table>
